import { defineStore } from 'pinia';
import { computed, ref } from 'vue';

export const useHistoryStore = defineStore('history', () => {
  const history = ref<string[]>([])
  const getterHistory = computed(() => history.value)
  const setterHistory = (value: string) => {
    history.value.push(value)
  }
  return {
    getterHistory,
    setterHistory
  }
})
